package com.yc.star.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 请求通知表
 * </p>
 *
 * @author ljl
 * @since 2024-07-23
 */
@TableName("s_maginform")
@Data
public class Maginform implements Serializable {

    private static final long serialVersionUID = 1L;

      /**
     * 通知ID
     */
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      /**
     * 发送者用户ID
     */
      private Long senderId;

      /**
     * 接收者用户ID
     */
      private Long receiverId;

      /**
     * 请求时间
     */
      private LocalDateTime requestTime;

      /**
     * 通知状态 (0: 待处理, 1: 已同意, -1: 已拒绝)
     */
      private Integer status;

      /**
     * 附加消息
     */
      private String message;

      /**
     * 是否已删除
     */
      private Byte isDeleted;


    /**
     * 发送者名字
     */
    @TableField(exist = false)
    private String sendname;

    /**
     * 发送者图像
     */
    @TableField(exist = false)
    private String img;

    public Long getId() {
        return id;
    }

      public void setId(Long id) {
          this.id = id;
      }
    
    public Long getSenderId() {
        return senderId;
    }

      public void setSenderId(Long senderId) {
          this.senderId = senderId;
      }
    
    public Long getReceiverId() {
        return receiverId;
    }

      public void setReceiverId(Long receiverId) {
          this.receiverId = receiverId;
      }
    
    public LocalDateTime getRequestTime() {
        return requestTime;
    }

      public void setRequestTime(LocalDateTime requestTime) {
          this.requestTime = requestTime;
      }
    
    public Integer getStatus() {
        return status;
    }

      public void setStatus(Integer status) {
          this.status = status;
      }
    
    public String getMessage() {
        return message;
    }

      public void setMessage(String message) {
          this.message = message;
      }
    
    public Byte getIsDeleted() {
        return isDeleted;
    }

      public void setIsDeleted(Byte isDeleted) {
          this.isDeleted = isDeleted;
      }

    @Override
    public String toString() {
        return "Maginform{" +
              "id = " + id +
                  ", senderId = " + senderId +
                  ", receiverId = " + receiverId +
                  ", requestTime = " + requestTime +
                  ", status = " + status +
                  ", message = " + message +
                  ", isDeleted = " + isDeleted +
              "}";
    }
}
